<p>Giải pháp y tế cộng đồng 2013 | Thiết kế và phát triển bởi FindSpec Team, Liên hệ: 094.273.2200</p>
<div id="preview_article" class="frame_block">
    <div class="sp_block no_scroll" style="width: 90%; margin-top: 20px;">
        <div class="sp_block_padding">
            <div class="sp_block_heading">
                <h3 class="left">Xem trước tin</h3>
                <div class="right close_button" onclick="close_dialog('preview_article')"></div>
            </div>
            <div class="sp_block_content auto_render_content">

            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    function CaricaFoto(img){
        foto1= new Image();
        foto1.src=(img);
        Controlla(img);
    }
    function Controlla(img){
        if((foto1.width!=0)&&(foto1.height!=0)){
            viewFoto(img);
        }
        else{
            funzione="Controlla('"+img+"')";
            intervallo=setTimeout(funzione,20);
        }
    }
    function viewFoto(img){
        largh=foto1.width+20;
        altez=foto1.height+20;
        foto1.id = "zoom_image";
        stringa="width="+largh+",height="+altez;
        finestra=window.open(img,"",stringa);
    }
</script>
<script type="text/javascript">
    var right_height = $(".right_column").height();
    var left_height = $(".left_column").height();
    if (right_height < left_height) {
        $(".left_column").css({"border-right": "1px solid #b5b5b5"});
    } else {
        $(".right_column").css({"border-left": "1px solid #b5b5b5"});
    }
    $(".uploaded_file").click(function() {
        var src = $(this).attr("src");
        CaricaFoto(src);
    });
    $(".remove_image").click(function() {
        var src = $(this).prev().attr("src");
        var action = "<?php echo site_url('admin/ajax/delete'); ?>";
        $.ajax({
            url: action,
            data: 'src=' + src,
            success: function(data) {
            }
        });
        var prev = $(this).prev();
        $(prev).prev().hide();
        $(this).prev().hide();
        $(this).hide();
    });
    $(".date_picker").datepicker({"dateFormat": "dd/mm/yy"});
</script>
